package cn.edu.sgu.www.mhxysy.service.equipment.impl;

import cn.edu.sgu.www.mhxysy.entity.equipment.EquipmentTejiType;
import cn.edu.sgu.www.mhxysy.mapper.equipment.EquipmentTejiTypeMapper;
import cn.edu.sgu.www.mhxysy.service.equipment.EquipmentTejiTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class EquipmentTejiTypeServiceImpl implements EquipmentTejiTypeService {

    private final EquipmentTejiTypeMapper equipmentTejiTypeMapper;

    @Autowired
    public EquipmentTejiTypeServiceImpl(EquipmentTejiTypeMapper equipmentTejiTypeMapper) {
        this.equipmentTejiTypeMapper = equipmentTejiTypeMapper;
    }

    @Override
    public List<EquipmentTejiType> selectAll() {
        return equipmentTejiTypeMapper.selectList(null);
    }

    @Override
    public EquipmentTejiType selectById(Integer id) {
        return equipmentTejiTypeMapper.selectById(id);
    }

}